<?php

function smarty_function_loadcss($params, &$smarty) {
    $file = strtolower(trim($params["file"]));
    $version = strtolower(trim($params["version"]));
    switch ($file) {
        case "g":
        case "tui":
            if ($version == "70") {
                $html = '<link type="text/css" href="http://css.tudouui.com/skin/__g/__g_70.css" rel="stylesheet" />';
            } else {
                $html = '<link type="text/css" href="http://css.tudouui.com/skin/__g/__g_70.css" rel="stylesheet" />';
            }
            break;
        case "upload":
        case "publish":
        case "video-publish":
            if ($version == "1") {
                $html = '<link type="text/css" href="http://css.tudouui.com/skin/my/upload_new_1.css" rel="stylesheet" />';
            } else {
                $html = '<link type="text/css" href="http://css.tudouui.com/skin/my/upload_new_1.css" rel="stylesheet" />';
            }
            break;
        case "td-login":
            if ($version == "2") {
                $html = '<link type="text/css" href="http://css.tudouui.com/skin/login/v_2.css" rel="stylesheet" />';
            } else {
                $html = '<link type="text/css" href="http://css.tudouui.com/skin/login/v_2.css" rel="stylesheet" />';
            }
            break;
        default:
            $html = "";
    }
    return $html;
}

?>